package JavaSEAdvance.day01_extends.d016_homework02;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class Teacher extends Person {
    @Override
    public void eat() {
        System.out.println("吃工作餐");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id='" + getId() + '\'' +
                ", name='" + getName() + '\'' +
                ", gender='" + getGender() + '\'' +
                ", age=" + getAge() +
                '}';
    }

    public Teacher() {
    }

    public Teacher(String id, String name, String gender, int age) {
        super(id, name, gender, age);
    }
}
